package com.platform.service.impl;

import com.platform.dao.WithdrawBillDao;
import com.platform.service.WithdrawBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.platform.entity.WithdrawBillEntity;

/**
 * 提现管理Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-06-03 15:04:03
 */
@Service("withdrawBillService")
public class WithdrawBillServiceImpl implements WithdrawBillService {
    @Autowired
    private WithdrawBillDao apiWithdrawBillDao;

    @Override
    public WithdrawBillEntity queryObject(Long id) {
        return apiWithdrawBillDao.queryObject(id);
    }

    @Override
    public List<WithdrawBillEntity> queryList(Map<String, Object> map) {
        return apiWithdrawBillDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return apiWithdrawBillDao.queryTotal(map);
    }

    @Override
    public int save(WithdrawBillEntity apiWithdrawBill) {
        return apiWithdrawBillDao.save(apiWithdrawBill);
    }

    @Override
    public int update(WithdrawBillEntity apiWithdrawBill) {
        return apiWithdrawBillDao.update(apiWithdrawBill);
    }

    @Override
    public int delete(Long id) {
        return apiWithdrawBillDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return apiWithdrawBillDao.deleteBatch(ids);
    }

    @Override
    public BigDecimal selectByAgentId(Map<String, Object> params) {
        return apiWithdrawBillDao.selectByAgentId(params);
    }

    @Override
    public BigDecimal selectAllByAgentId(Map<String, Object> params) {
        return apiWithdrawBillDao.selectAllByAgentId(params);
    }
}
